import { FC } from 'react';
import { QuestionTextAreaPropsType, QuestionTextAreaDefaultProps } from './interface';
import { Typography, Input } from 'antd';
const { Paragraph } = Typography;
const { TextArea } = Input;
const QuestionTextarea: FC<QuestionTextAreaPropsType> = (props: QuestionTextAreaPropsType) => {
  const { title = '', placeholder = '' } = { ...QuestionTextAreaDefaultProps, ...props };
  return (
    <div>
      <Paragraph>{title}</Paragraph>
      <div>
        <TextArea placeholder={placeholder} />
      </div>
    </div>
  );
};

export default QuestionTextarea;
